package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 mes_device
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Integer id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceId;

    private String oldDeviceId;


    /** 设备名 */
    @Excel(name = "设备名")
    private String deviceName;

    /** 设备状态(0正常/1异常/2维修中) */
    @Excel(name = "设备状态(0正常/1异常/2维修中)")
    private Integer deviceStatus;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }

    public String getOldDeviceId()
    {
        return oldDeviceId;
    }

    public void setOldDeviceId(String oldDeviceId)
    {
        this.oldDeviceId = oldDeviceId;
    }


    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceStatus(Integer deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public Integer getDeviceStatus() 
    {
        return deviceStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("deviceStatus", getDeviceStatus())
            .toString();
    }
}
